<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="${BASE_PATH}/static/lib/layui/css/layui.css" />
	</head>

	<body>
		<form class="layui-form" action="" style="margin: 10px 10px 0 10px;">
			<div class="layui-form-item">
				<label class="layui-form-label">姓名</label>
				<div class="layui-input-inline">
					<input type="text" value="${user.name}" name="text" lay-verify="name" placeholder="" autocomplete="off" class="layui-input" disabled>
				</div>
				<label class="layui-form-label">登陆账号</label>
				<div class="layui-input-inline">
					<input type="text" value="${user.phone}" name="text" lay-verify="userName" placeholder="" autocomplete="off" class="layui-input" disabled>
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">状态</label>
				<div class="layui-input-inline">
					<input type="text" value="${user.stateName}" name="text" lay-verify="state" placeholder="" autocomplete="off" class="layui-input" disabled>
				</div>
				<label class="layui-form-label">所属角色</label>
				<div class="layui-input-inline">
					<input type="text" value="${user.role}" name="text" lay-verify="roles" placeholder="" autocomplete="off" class="layui-input" disabled>
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">用户名</label>
				<div class="layui-input-inline">
					<input type="text" value="${user.phone}" name="text" lay-verify="phone" placeholder="" autocomplete="off" class="layui-input" disabled>
				</div>
			</div>

			<!--<div class="layui-form-item">
				<div class="layui-input-block">
					<button class="layui-btn" lay-submit="" lay-filter="demo1"><i class="layui-icon">&#x1005;</i>保存</button>
				</div>
			</div>-->
		</form>
	</body>
	<script type="text/javascript" src="${BASE_PATH}/static/lib/layui/layui.js"></script>
	<script>
		layui.use(['form', 'layedit', 'laydate', 'jquery'], function() {
			var form = layui.form,
				layer = layui.layer;
			var $ = layui.jquery;
			

			//监听提交
			form.on('submit(demo1)', function(data) {
				layer.alert(JSON.stringify(data.field), {
					title: '最终的提交信息'
				})
				return false;
			});

		});
	</script>

</html>